package com.course.delegate;

import java.util.Vector;

import com.course.bean.ExamTo;
import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;
import com.course.serviceI.ExamServiceI;
import com.course.serviceImpl.ExamServiceImpl;

public class ExamMgrDelegate {
	
	ExamServiceI esi=new ExamServiceImpl();

	public Vector<ExamTo> viewQuestion()throws DataNotFoundException{
		return esi.viewQuestion();
	}
	public boolean scheduleExam(ExamTo eb)throws LoginException,ConnectionException{
		return esi.scheduleExam(eb);
	}
	public Vector<ExamTo> viewSchedule()throws DataNotFoundException{
		return esi.viewSchedule();
	}
	public boolean insertMarks(ExamTo eb)throws LoginException,ConnectionException{
		
		return esi.insertMarks(eb);
	}
	public Vector<ExamTo > viewMarks()throws DataNotFoundException{
		return esi.viewMarks();
	}
	public Vector<ExamTo > viewMarksAt(String login)throws DataNotFoundException{
		return esi.viewMarksAt(login);
	}
	public boolean insertQuestion(ExamTo eb) throws LoginException,ConnectionException {
		return esi.insertQuestion(eb);
	}
	
}
